package com.rox.el;

import java.awt.Dimension;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.ScrollPaneConstants;

public class Wrong extends JFrame{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JPanel wrong = new JPanel();
	static JTextArea wrongWords;
	JPanel p;
	public Wrong(){
		this.setTitle("Word(s) that you got wrong");
		wrongWords = new JTextArea(15,35);
		wrongWords.setWrapStyleWord(true);
		wrongWords.setLineWrap(true);
		wrongWords.setEditable(false);
		JScrollPane scroller = new JScrollPane(wrongWords);
		scroller.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
		scroller.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
		wrong.add(scroller);
		this.add(wrong);
		this.setSize(new Dimension(420,280));
		this.setVisible(true);
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setResizable(false);
		this.setLocationRelativeTo(null);
	}

}
